<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    request.setAttribute("title","系统管理");
%>
<%@include file="base/headstart.jsp"%>
<%@include file="base/headend.jsp"%>
<div class="container-fluid">
    <div class="row" style="background: #444;">
        <div class="col-md-2" style="color:#fff;line-height:50px">
            <h3>系统管理</h3>
        </div>
        <div class="col-md-10" style="line-height:50px">

        </div>
    </div>
    <div  class="row">
        <div id="mainMenu" class="col-md-2" style="padding: 10px;background:#444">
            <a href="/account/index" target="mainFrm" class="btn btn-primary btn-block">账户管理</a>
            <a href="/reptile/index" target="mainFrm"  class="btn btn-default btn-block">爬虫管理</a>
            <a href="/schedule/index" target="mainFrm"  class="btn btn-default btn-block">调度管理</a>
        </div>
        <div class="col-md-10" style="background: #444;padding:0;overflow: hidden;">
            <iframe name="mainFrm" id="mainFrm" src="/account/index">

            </iframe>
        </div>
    </div>
</div>
<%@include file="base/footerstart.jsp"%>
<script type="text/javascript">
    $(function(){
        var height=$(window).height();
        height=height-50-20;
        $("#mainMenu").height(height);
        var btns=$("#mainMenu a");
        btns.click(function(){
            var tarDom=$(this);
            btns.removeClass("btn-primary").addClass("btn-default");
            tarDom.removeClass("btn-default").addClass("btn-primary");
        });
        var frm=$("#mainFrm");
        frm.width("100%").height($(window).height()-50);
        $(document.body).css("overflow","hidden");
    })
</script>
<%@include file="base/footerend.jsp"%>
